import React from 'react';
import ReactDOM from 'react-dom/client';

// 导入外部样式文件并将其中的样式当作全局样式使用
import './index.css';

import Controlled from './Controlled';
import Uncontrolled from './Uncontrolled';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <React.StrictMode>
    <div className="wrapper">
      <p>受控组件</p>
      <Controlled />
      <hr />
      <p>非受控组件</p>
      <Uncontrolled />
    </div>
  </React.StrictMode>
);
